public class ArrayDemo3 {
    public static void main(String[] args) {
        // 二维数组：每行存储[编号, 书名, 借阅次数]
        String[][] books = {
                {"book1", "Java编程基础", "10"},
                {"book2", "数据结构与算法", "15"},
                {"book3", "数据库原理", "20"},
        };

        System.out.println("图书编号\t书名\t\t借阅次数");
        System.out.println("--------------------------------------");

        // 遍历二维数组
        for (int i = 0; i < books.length; i++) {
            for (int j = 0; j < books[i].length; j++) {
                System.out.print(books[i][j] + "\t");
            }
            System.out.println(); // 换行
        }
    }
}